<?php
/**
 * Created By 苏翔
 * Time: 2024/1/29 14:18
 */

namespace app\controller;

use app\BaseController;
use app\service\MarketService;
use think\App;

class Market extends BaseController
{
    public function __construct(App $app, MarketService $marketService )
    {
        parent::__construct($app);
        $this->marketService = $marketService;
    }

    function index()
    {
       $rs =$this->marketService->fetchTop();
       json($rs);
    }
}